package com.ruoyi.tccs.tccs_major_judge.utils.acquireAll.impl;

import com.ruoyi.tccs.tccs_blood_estimate.domain.TccsBloodEstimate;
import com.ruoyi.tccs.tccs_blood_estimate.service.impl.TccsBloodEstimateServiceImpl;
import com.ruoyi.tccs.tccs_display_esimate.domain.TccsDisplayEsimate;
import com.ruoyi.tccs.tccs_display_esimate.service.impl.TccsDisplayEsimateServiceImpl;
import com.ruoyi.tccs.tccs_major_judge.utils.acquireAll.tccsAcquire;
import com.ruoyi.tccs.tccs_pi_estimate.domain.TccsPiEstimate;
import com.ruoyi.tccs.tccs_pi_estimate.service.impl.TccsPiEstimateServiceImpl;
import com.ruoyi.tccs.tccs_ri_estimate.domain.TccsRiEstimate;
import com.ruoyi.tccs.tccs_ri_estimate.service.impl.TccsRiEstimateServiceImpl;
import com.ruoyi.tccs.tccs_vs_estimate.domain.TccsVsEstimate;
import com.ruoyi.tccs.tccs_vs_estimate.service.impl.TccsVsEstimateServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class tccsAcquireImpl implements tccsAcquire {


    @Autowired
    private TccsBloodEstimateServiceImpl BloodEstimateService;

    @Autowired
    private TccsVsEstimateServiceImpl VsEstimateService;

    @Autowired
    private TccsPiEstimateServiceImpl PiEstimateService;

    @Autowired
    private TccsRiEstimateServiceImpl RiEstimateService;

    @Autowired
    private TccsDisplayEsimateServiceImpl DisplayEsimateService;

    /**
     * 获取血流方向/血流信号颜色
     */
    @Override
    public List<TccsBloodEstimate> acquireBlood(TccsBloodEstimate tccsBloodEstimate){
        return BloodEstimateService.selectTccsBloodEstimateList(tccsBloodEstimate);
    }

    /**
     * 获取VS血流速度
     */
    @Override
    public List<TccsVsEstimate> acquireVs(TccsVsEstimate tccsVsEstimate) {
        return VsEstimateService.selectTccsVsEstimateList(tccsVsEstimate);
    }

    /**
     * 获取PI搏动指数
     */
    @Override
    public List<TccsPiEstimate> acquirePi(TccsPiEstimate tccsPiEstimate) {
        return PiEstimateService.selectTccsPiEstimateList(tccsPiEstimate);
    }

    /**
     * 获取RI阻力指数
     */
    @Override
    public List<TccsRiEstimate> acquireRi(TccsRiEstimate tccsRiEstimate) {
        return RiEstimateService.selectTccsRiEstimateList(tccsRiEstimate);
    }

    /**
     * 获取显示情况
     */
    @Override
    public List<TccsDisplayEsimate> acquireDisplay(TccsDisplayEsimate tccsDisplayEsimate) {
        return DisplayEsimateService.selectTccsDisplayEsimateList(tccsDisplayEsimate);
    }


}
